package com.bear.client;

import com.bear.excep.ExceptionExcep;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

/**  feign调用nacos-provide服务，调用里面的方法
 * @author LiuShanshan
 * @version V1.0
 * @Description
 */
@FeignClient(value = "nacos-provide", fallback = ExceptionExcep.class)   // 使用sentinel替换hystrix(这里是直接在括号里面写fallback)
public interface ProvideService {

    @RequestMapping("/provideGet")
    public String provideGet();
}

